package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.EquipmentdistributionMapper;
import com.ruoyi.domain.Equipmentdistribution;
import com.ruoyi.service.IEquipmentdistributionService;

/**
 * EquipmentdistributionService业务层处理
 * 
 * @author wjy
 * @date 2025-01-11
 */
@Service
public class EquipmentdistributionServiceImpl implements IEquipmentdistributionService 
{
    @Autowired
    private EquipmentdistributionMapper equipmentdistributionMapper;

    /**
     * 查询Equipmentdistribution
     * 
     * @param distributionId Equipmentdistribution主键
     * @return Equipmentdistribution
     */
    @Override
    public Equipmentdistribution selectEquipmentdistributionByDistributionId(Long distributionId)
    {
        return equipmentdistributionMapper.selectEquipmentdistributionByDistributionId(distributionId);
    }

    /**
     * 查询Equipmentdistribution列表
     * 
     * @param equipmentdistribution Equipmentdistribution
     * @return Equipmentdistribution
     */
    @Override
    public List<Equipmentdistribution> selectEquipmentdistributionList(Equipmentdistribution equipmentdistribution)
    {
        return equipmentdistributionMapper.selectEquipmentdistributionList(equipmentdistribution);
    }

    /**
     * 新增Equipmentdistribution
     * 
     * @param equipmentdistribution Equipmentdistribution
     * @return 结果
     */
    @Override
    public int insertEquipmentdistribution(Equipmentdistribution equipmentdistribution)
    {
        return equipmentdistributionMapper.insertEquipmentdistribution(equipmentdistribution);
    }

    /**
     * 修改Equipmentdistribution
     * 
     * @param equipmentdistribution Equipmentdistribution
     * @return 结果
     */
    @Override
    public int updateEquipmentdistribution(Equipmentdistribution equipmentdistribution)
    {
        return equipmentdistributionMapper.updateEquipmentdistribution(equipmentdistribution);
    }

    /**
     * 批量删除Equipmentdistribution
     * 
     * @param distributionIds 需要删除的Equipmentdistribution主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentdistributionByDistributionIds(Long[] distributionIds)
    {
        return equipmentdistributionMapper.deleteEquipmentdistributionByDistributionIds(distributionIds);
    }

    /**
     * 删除Equipmentdistribution信息
     * 
     * @param distributionId Equipmentdistribution主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentdistributionByDistributionId(Long distributionId)
    {
        return equipmentdistributionMapper.deleteEquipmentdistributionByDistributionId(distributionId);
    }
}
